﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001171 RID: 4465
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetLineupNameCsReq : IMessage<SetLineupNameCsReq>, IMessage, IEquatable<SetLineupNameCsReq>, IDeepCloneable<SetLineupNameCsReq>, IBufferMessage
	{
		// Token: 0x1700387C RID: 14460
		// (get) Token: 0x0600C7D1 RID: 51153 RVA: 0x0021ABD0 File Offset: 0x00218DD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetLineupNameCsReq> Parser
		{
			get
			{
				return SetLineupNameCsReq._parser;
			}
		}

		// Token: 0x1700387D RID: 14461
		// (get) Token: 0x0600C7D2 RID: 51154 RVA: 0x0021ABD7 File Offset: 0x00218DD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetLineupNameCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700387E RID: 14462
		// (get) Token: 0x0600C7D3 RID: 51155 RVA: 0x0021ABE9 File Offset: 0x00218DE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetLineupNameCsReq.Descriptor;
			}
		}

		// Token: 0x0600C7D4 RID: 51156 RVA: 0x0021ABF0 File Offset: 0x00218DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameCsReq()
		{
		}

		// Token: 0x0600C7D5 RID: 51157 RVA: 0x0021AC03 File Offset: 0x00218E03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameCsReq(SetLineupNameCsReq other) : this()
		{
			this.index_ = other.index_;
			this.name_ = other.name_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C7D6 RID: 51158 RVA: 0x0021AC34 File Offset: 0x00218E34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameCsReq Clone()
		{
			return new SetLineupNameCsReq(this);
		}

		// Token: 0x1700387F RID: 14463
		// (get) Token: 0x0600C7D7 RID: 51159 RVA: 0x0021AC3C File Offset: 0x00218E3C
		// (set) Token: 0x0600C7D8 RID: 51160 RVA: 0x0021AC44 File Offset: 0x00218E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17003880 RID: 14464
		// (get) Token: 0x0600C7D9 RID: 51161 RVA: 0x0021AC4D File Offset: 0x00218E4D
		// (set) Token: 0x0600C7DA RID: 51162 RVA: 0x0021AC55 File Offset: 0x00218E55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600C7DB RID: 51163 RVA: 0x0021AC68 File Offset: 0x00218E68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetLineupNameCsReq);
		}

		// Token: 0x0600C7DC RID: 51164 RVA: 0x0021AC78 File Offset: 0x00218E78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetLineupNameCsReq other)
		{
			return other != null && (other == this || (this.Index == other.Index && !(this.Name != other.Name) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C7DD RID: 51165 RVA: 0x0021ACC8 File Offset: 0x00218EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C7DE RID: 51166 RVA: 0x0021AD22 File Offset: 0x00218F22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C7DF RID: 51167 RVA: 0x0021AD2A File Offset: 0x00218F2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C7E0 RID: 51168 RVA: 0x0021AD34 File Offset: 0x00218F34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Index != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Index);
			}
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(106);
				output.WriteString(this.Name);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C7E1 RID: 51169 RVA: 0x0021AD94 File Offset: 0x00218F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C7E2 RID: 51170 RVA: 0x0021ADF0 File Offset: 0x00218FF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetLineupNameCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C7E3 RID: 51171 RVA: 0x0021AE45 File Offset: 0x00219045
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C7E4 RID: 51172 RVA: 0x0021AE50 File Offset: 0x00219050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Name = input.ReadString();
					}
				}
				else
				{
					this.Index = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005044 RID: 20548
		private static readonly MessageParser<SetLineupNameCsReq> _parser = new MessageParser<SetLineupNameCsReq>(() => new SetLineupNameCsReq());

		// Token: 0x04005045 RID: 20549
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005046 RID: 20550
		public const int IndexFieldNumber = 2;

		// Token: 0x04005047 RID: 20551
		private uint index_;

		// Token: 0x04005048 RID: 20552
		public const int NameFieldNumber = 13;

		// Token: 0x04005049 RID: 20553
		private string name_ = "";
	}
}
